import 'dart:convert';
import 'dart:typed_data';

abstract class GenericFileHandle {
  Future<Uint8List> read(int offset, int length, [int position = 0, String encoding]);

  Future<Uint8List> readFile({String encoding});

  Future<String> readAsString({Encoding encoding});

  Stream<List<int>> openStream([int start, int end]);

  int get size;

  Future<Map> stat();
}
